﻿namespace MiniJob;

/// <summary>
/// Worker 上报健康信息
/// </summary>
public class WorkerHeartbeat
{
    /// <summary>
    /// 本机地址 -> IP:port
    /// </summary>
    public required string WorkerAddress { get; set; }

    public required string AppName { get; set; }

    /// <summary>
    /// Worker 标签
    /// </summary>
    public string? Tag { get; set; }

    public DateTime HeartbeatTime { get; set; }

    public SystemMetrics? Metrics { get; set; }
}
